package com.estun.backroundManagementService.modules.position.controller;

import com.estun.backroundManagementService.domain.BaseResponse;
import com.estun.backroundManagementService.modules.position.service.FeedingPortService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "FeedingPortController", description = "上料口管理")
@RequestMapping("/basic/feedingPort")
public class FeedingPortController {

    @Autowired
    private FeedingPortService feedingPortService;
    @ApiOperation("查询所有上料口")
    @GetMapping(value = "/list")
    @ResponseBody
    public BaseResponse list() {
        return BaseResponse.success(feedingPortService.list());
    }

}
